package com.jt.demo6;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@ComponentScan("com.jt.demo6")


public class SpringConfig {
    //手动创建对象，交给Spring容器管理
    /*@Bean
    public User user(){
        return new User();
    }*/
}
